package com.topscore.uke.mvp.contractors;

import com.topscore.uke.entities.VisitorChartBean;
import com.topscore.uke.entities.VisitorSourceEntity;
import com.topscore.uke.mvp.BaseContractor;
import com.topscore.uke.mvp.model.BaseHttpListener;
import com.topscore.uke.mvp.views.BaseView;
import com.topscore.uke.network.BaseResponse;
import com.topscore.uke.network.retrofit.ApiService;
import com.topscore.uke.network.retrofit.NetClientPostJson;

import java.util.List;

/**
 * Created by 71468 on 2017/10/27.
 */

public interface GetMyVisitorsContractor extends BaseContractor {
    interface Model{
        ApiService mService = NetClientPostJson.getInstance().net().create(ApiService.class);
        void getVisitorsChartData(String userId);
        void getData(String userId);
    }

    interface View extends BaseView{
        void onGetChartDataSuccess(List<VisitorChartBean> entities);

        void onGetSourceDataSuccess(List<VisitorSourceEntity> entities);
    }

    interface Presenter{
        void getVisitorsData(String userID);

        void getChartData(String userID);
    }

    interface CallBack extends BaseHttpListener{
        void onGetChartDataSuccess(BaseResponse<List<VisitorChartBean>> response);
        void onGetVisitorSourceDataSuccess(BaseResponse<List<VisitorSourceEntity>> response);
    }
}
